home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / FILLTBOX.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  38 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   FILLTBOX.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NBT1.INC"
  19. COLOR 7, 0
  20. CLS
  21. ? "┌────────────────────────────────────────────────────────────────────────
  22. ? "│ TBoxFILL ( Row?, Col?, Rows?, Cols?, Char?, Attr% )
  23. ? "├─────────────────────────────────────────────────────────────────────────────
  24. ? "│ Fill an area of the screen with a character (and) attribute
  25. ? "│ A notable difference here from the Tprint routines is that attributes
  26. ? "│ 0 and 17 can be used and if you wish to only print the characters in
  27. ? "│ the current screen's attribute(s) then you must use a value of -1.
  28. ? "└─────────────────────────────────────────────────────────────────────────────
  29.  
  30. Attr? = 16
  31. FOR Col? = 1 TO 79                    ' print some color bands on the screen
  32.   INCR Attr?                          '
  33.   TBoxCOLOR 10, Col?, 10, 1, Attr?    '
  34. NEXT                                  '
  35. DELAY 1                               ' dramatic pause
  36. TBoxFILL 10,  1, 10, 79, 65, -1       ' fill them with A's screen's attrs
  37. DELAY 1                               ' the suspense builds!!!!!!
  38. TBoxFILL 12, 20,  6, 40, 32,  7       ' clear a box in the middle